import request from "@/utils/request";

//记账
export function writeFeeToBill(checkInMark, data) {
  return request({
    url: "/sinohis/pension/bill/checkinfee/writeFeeToBill/"+checkInMark,
    method: "post",
    data
  });
}

//查询未入账费用
export function searchAllfeeDetailsOfNoBill(checkInMark, params) {
  return request({
    url: "/sinohis/pension/bill/checkinfee/searchAllfeeDetailsOfNoBill/"+checkInMark,
    method: "get",
    params
  });
}

//费用撤销
export function revokefeeDetail(detailNumber) {
  return request({
    url: "/sinohis/pension/bill/checkinfee/revokefeeDetail/"+detailNumber,
    method: "post"
  });
}

//费用撤销-已结算
export function revokeSettledFeeDetail(detailNumber, data) {
  return request({
    url: "/sinohis/pension/bill/checkinfee/revokeSettledFeeDetail/"+detailNumber,
    method: "post",
    data
  });
}

//查询入住账户所有未结算费用以及基础月费未满月负费用
export function searchRetreatCheckInFeeDetail(checkInMark,reason) {
  return request({
    url: "/sinohis/pension/bill/checkinfee/searchRetreatCheckInFeeDetail/"+checkInMark+'/'+reason,
    method: "get"
  });
}
